package gonz.common;


import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;

public class Config {

    private static final String SETTINGS_PROPERTIES_FILE_NAME = "settings.properties";
    public static final String GRAB_LIST_KEY = "grab";
    public static final String GRAB_LIST_IMG_FOLDER_KEY = "to";
    public static final String OUTPUT_DIR_KEY = "output_dir";
    public static final String SKIP_ALTERNATE_KEY = "skip_alternate_images";
    public static final String GRAB_START_FROM_KEY = "grab_start_from";
    public static final String GRAB_DIRECT_LINK_LIST_KEY = "grab_direct_link";
    public static Configuration settings;

    static {
        try {
            settings = new PropertiesConfiguration(SETTINGS_PROPERTIES_FILE_NAME);
        } catch (ConfigurationException e) {
            throw new RuntimeException("Can't create configuration", e);
        }
    }


}
